#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :login.py
# @Time      :2021/8/2 13:38
# @author    :Harry

from selenium import webdriver
import time
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.maximize_window()

driver.get('http://192.168.1.241/hdshop/user.php')
driver.implicitly_wait(30)

driver.find_element(By.NAME, 'username').send_keys('panpan111')
driver.find_element(By.NAME, 'password').send_keys('123456')
driver.find_element(By.NAME, 'submit').click()

time.sleep(2)
driver.quit()